package com.woniuxy.service;/* *
@author 张鹏
@create 2021-11-22 16:31
*/

import com.woniuxy.entity.EnterpriseCredit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "activiti")
public interface ActivitiService {

    @GetMapping("/enterprisecredit/userId/{userId}")
    public List<EnterpriseCredit> findCreditByUserId(@PathVariable("userId") int userId);

    @GetMapping("/enterprisecredit/id/{id}")
    public EnterpriseCredit findCreditById(@PathVariable("id") int id);

    @GetMapping("/enterprisecredit/enterpriseId/{enterpriseId}")
    public List<EnterpriseCredit> findCreditByEnterpriseId(@PathVariable("enterpriseId") int enterpriseId);

    @PostMapping("/enterprisecredit/add")
    // @RequestMapping("/enterprisecredit/add")
    public void addEnterpriseCredit(@RequestBody EnterpriseCredit enterpriseCredit);
}
